import Vue from "vue";
import VueRouter from "vue-router";
import routes from "./routers";
Vue.use(VueRouter); //使用vue插件

const router = new VueRouter({
    //配置
    routes, //路由匹配规则
    mode: "history", //路由模式
});

export default router;